package com.iqismart.shorturl.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;

import java.util.List;

/**
 * @Description
 * @Auther sty
 * @createTime 2019-10-14 11:22
 */
@NoRepositoryBean
public interface BaseRepository<T> extends JpaRepository<T, Long>, JpaSpecificationExecutor<T> {

    int deleteByIdIn(Long[] id);

    List<T> findByIdIn(Long[] ids);

    List<T> findByIdIn(List<Long> ids);

}
